package com.zcah.db.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.zcah.db.dao.DbsourceDao;
import com.zcah.db.domain.DbsourceDO;
import com.zcah.db.service.DbsourceService;



@Service
public class DbsourceServiceImpl implements DbsourceService {
	@Autowired
	private DbsourceDao dbsourceDao;
	
	@Override
	public DbsourceDO get(Integer id){
		return dbsourceDao.get(id);
	}
	
	@Override
	public List<DbsourceDO> list(Map<String, Object> map){
		return dbsourceDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return dbsourceDao.count(map);
	}
	
	@Override
	public int save(DbsourceDO dbsource){
		return dbsourceDao.save(dbsource);
	}
	
	@Override
	public int update(DbsourceDO dbsource){
		return dbsourceDao.update(dbsource);
	}
	
	@Override
	public int remove(Integer id){
		return dbsourceDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return dbsourceDao.batchRemove(ids);
	}
	
}
